home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: peter@ferranti.com (peter da silva)
-
- In article <1ojaj8INNrrl@ftp.UU.NET> meulenbr@prl.philips.nl (Frans Meulenbroeks) writes:
- >My best guess would be to reject the open and return an errno.
- >If that is right, then what is the best errno value to return?
- >EACCESS?
-
- I don't think a *device* should ever return EACCESS or (for that matter)
- ENOENT. I've had *both* of them, and every time I (or the person I'm working
- with) has gone scurrying around trying to figure out what file the program
- was really trying to use. Why? Because almost always these errors *are* due
- to some program calling perror incorrectly with the wrong name.
-
- I would suggest ENXIO, EINVAL, or even ENODEV.
-
- --
- Peter da Silva `-_-'
- Ferranti International Controls Corporation 'U`
- 12808 West Airport Blvd. Sugar Land, TX 77478 USA
- +1 713 274 5180 "Zure otsoa besarkatu al duzu gaur?"
-
- Volume-Number: Volume 31, Number 24
-
-
-